<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #d1{
            width: 500px;
            height: 500px;
            border: 1px solid #000;
            background: url("../../img/沙发.png") repeat;
        }
        input{
            width: 300px;
            height: 35px;
        }
        #user_name{
            background: url("../../img/yhm.png") no-repeat;
            background-position: 270px;
        }
        #password{
            background: url("../../img/mm.png") no-repeat 270px 6px;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <hr>
    <form action="#" method="get">
        <div>
            <input type="text" name="username" id="user_name" placeholder="请输入用户名">
        </div>
        <div>
            <input type="password" name="password" id="password" placeholder="请输入密码">
        </div>
    </form>
</body>
</html>